<?php if (!defined('THINK_PATH')) exit(); /*a:9:{s:81:"F:\phpstudy\WWW\ZZZ\fenxiao\public/../application/home\view\_Tpl\cloud\brand.html";i:1507176640;s:61:"F:\phpstudy\WWW\ZZZ\fenxiao\application\home\view\layout.html";i:1514786983;s:68:"F:\phpstudy\WWW\ZZZ\fenxiao\application\home\view\_Layout\_head.html";i:1514809262;s:70:"F:\phpstudy\WWW\ZZZ\fenxiao\application\home\view\_Layout\_navbar.html";i:1514808830;s:68:"F:\phpstudy\WWW\ZZZ\fenxiao\application\home\view\_Layout\_menu.html";i:1514819252;s:70:"F:\phpstudy\WWW\ZZZ\fenxiao\application\home\view\_Layout\_header.html";i:1514808055;s:68:"F:\phpstudy\WWW\ZZZ\fenxiao\application\home\view\_Layout\_path.html";i:1514787011;s:70:"F:\phpstudy\WWW\ZZZ\fenxiao\application\home\view\_Layout\_footer.html";i:1514808101;s:68:"F:\phpstudy\WWW\ZZZ\fenxiao\application\home\view\_Layout\_foot.html";i:1514805882;}*/ ?>
<html>
<!--这里是 css-->
<?php 
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* | $TPL_NAME 为小程序模板数据名称 一般进入后会有 miniID & tplID 两个字段
* |    此处根据 login_tplID 获取名称 与保存 Controller 与 Action 名称
* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
$TPL_NAME =  'cloud';
$_CONTROLLER = \think\Request::instance()->controller();
 ?>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <meta http-equiv="expires" content="0">

    <title><?php echo $CONFIG['title']; ?> __SITE_NAME__</title>

    <link href="__PUBLIC__/home/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">
    <link href="__PUBLIC__/home/css/animate.css" rel="stylesheet">
    <link href="__PUBLIC__/home/css/style.css" rel="stylesheet">
    <link href="__PUBLIC__/home/css/plugins/select2/select2.min.css" rel="stylesheet">
    <link href="__PUBLIC__/home/css/plugins/dataTables/datatables.min.css" rel="stylesheet">
    <link href="__PUBLIC__/home/js/plugins/bootstrap-switch/css/bootstrap-switch.css" rel="stylesheet">
    <!-- Toastr style -->
    <link href="__PUBLIC__/home/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/main.css" />

    <!-- Other Page Css Start -->
    <?php if(isset($CONFIG['css'][0])): $__FOR_START_2668__=0;$__FOR_END_2668__=count($CONFIG['css']);for($i=$__FOR_START_2668__;$i < $__FOR_END_2668__;$i+=1){ ?>
    <link href="__PUBLIC__/<?php echo $CONFIG['css'][$i]; ?>" rel="stylesheet">
    <?php } endif; ?>
    <!-- Other Page Css End -->
    <script>
        var HOST = '__HOST__';
    </script>
</head>

<body data-host="__HOST__">

<div id="wrapper">

    <nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav metismenu" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:">
                            <span class="clear">
                                <nobr class="block" style="font-size: 1.2em;">
                                    <strong class="font-bold">速用科技</strong>
                                </nobr>
                                <nobr class="text-muted text-xs block">小程序名<b class="caret"></b></nobr>
                            </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInLeft m-t-md">
                        <li class="disabled"><a href="javascript:">尚未开放切换功能</a></li>
                    </ul>
                </div>
                <div class="logo-element">
                   <span class="fa-stack fa-lg">
                      <i class="fa fa-circle-o-notch fa-stack-2x fa-spin" style="color: #1ab394;"></i>
                      <i class="fa fa-circle fa-stack-2x"></i>
                      <i class="fa fa-yoast fa-stack-1x" style="color: #116453;"></i>
                    </span>
                </div>
            </li>
            <li<?php echo \think\Request::instance()->controller()=="Index"?' class="active"':''; ?>>
<a href="__HOST__/index.html"><i class="fa fa-th-large"></i> <span class="nav-label">控制面板</span></a>
</li>

<?php  // 动态加载模板名称对应的菜单
include_once("../application/home/view/_Tpl/cloud/menus.html");
 ?>

<li class="special_link<?php echo \think\Request::instance()->controller()==" System"?' active':''; ?>">
<a href="__HOST__/system.html"><i class="fa fa-database"></i> <span class="nav-label">设 置</span></a>
</li>
        </ul>

    </div>
</nav>


    <div id="page-wrapper" class="gray-bg">

        <div class="row border-bottom">
    <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
        <div class="navbar-header">
            <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="javascript:"><i
                    class="fa fa-bars"></i> </a>
            <form role="search" class="navbar-form-custom" onsubmit="return false">
                <div class="form-group">
                    <input type="text" placeholder="" class="form-control" name="top-search" id="top-search">
                </div>
            </form>
        </div>
        <ul class="nav navbar-top-links navbar-right">
            <?php 

            $statu = 1;
             if($statu == 0): ?>
            <a class='btn btn-lg btn-primary'  id='sub_checks'><i class='fa fa-spinner fa-send'></i> 提交审核</a>
            <?php elseif($statu == 1): ?>
            <a class='btn btn-lg btn-primary'  disabled>审核中...</a>
            <?php elseif($statu == 2): ?>
            <a class="btn btn-lg btn-primary"  id="errinfo">审核失败(点击查看错误信息)</a> <a class="btn btn-lg btn-primary"  id="sub_checks">提交审核</a>
            <?php elseif($statu == 3): ?>
            审核成功 <a class='btn btn-lg btn-primary' id="sub_shenhe"  onclick='sub_publish()'><i class='fa fa-spinner fa-send'></i> 提交发布</a>
            <?php elseif($statu == 4): ?>
            已经上线 <a class='btn btn-lg btn-primary'  id='sub_checks'><i class='fa fa-spinner fa-send'></i> 重新提交审核</a>
            <?php else: endif; ?>
            <li class="dropdown">
                <a class="dropdown-toggle count-info" data-toggle="dropdown" href="layouts.html#">
                    <i class="fa fa-envelope"></i> <span class="label label-warning">0</span>
                </a>
                <ul class="dropdown-menu dropdown-messages">
                    <li>
                        <div class="dropdown-messages-box">
                            <div class="media-body text-center">
                                没有新的通知
                            </div>
                        </div>
                    </li>

                    <li class="divider"></li>
                    <li>
                        <div class="text-center link-block">
                            <a href="mailbox.html">
                                <strong>查看所有通知</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </div>
                    </li>
                </ul>
            </li>
            <li class="dropdown">
                <a class="dropdown-toggle count-info" data-toggle="dropdown" href="layouts.html#">
                    <i class="fa fa-bell"></i> <span class="label label-primary">0</span>
                </a>
                <ul class="dropdown-menu dropdown-alerts">
                    <li>
                        <a href="mailbox.html">
                            <div class="text-center">
                                你有0条未读信息
                            </div>
                        </a>
                    </li>
                    <li class="divider"></li>

                    <li>
                        <div class="text-center link-block">
                            <a href="notifications.html">
                                <strong>查看所有消息</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </div>
                    </li>
                </ul>
            </li>
            <li class="dropdown">
                <a class="dropdown-toggle count-info" data-toggle="dropdown" href="layouts.html#">
                    <?php echo \think\Session::get('tplName'); ?><b class="caret"></b>
                </a>
                <ul class="dropdown-menu" style="width: 100px;">
                    <li class="disabled">
                        <a href="javascript:">
                            <nobr class="block text-center">暂不支持切换模板</nobr>
                        </a>
                    </li>

                </ul>
            </li>
            <li>
                <a href="javascript:" id="userLogOut">
                    <i class="fa fa-sign-out"></i> 安全退出
                </a>
            </li>
        </ul>

    </nav>
</div>

        <?php if(isset($CONFIG['path'][0])): ?>
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2><?php echo $CONFIG['title']; ?></h2>
        <ol class="breadcrumb">
            <li>
                <a href="__HOST__/index">HOME</a>
            </li>
            <?php $__FOR_START_6625__=0;$__FOR_END_6625__=count($CONFIG['path']);for($i=$__FOR_START_6625__;$i < $__FOR_END_6625__;$i+=1){ ?>
            <li<?php echo count($CONFIG['path']) == $i + 1 ? ' class="active"':'' ?>>
            <?php echo count($CONFIG['path']) == $i + 1 ? '<strong>':'' ?>
            <?php echo $CONFIG['path'][$i]; ?>
            <?php echo count($CONFIG['path']) == $i + 1 ? '</strong>':'' ?>
            </li>
            <?php } ?>
        </ol>
    </div>
    <div class="col-lg-2">

    </div>
</div>
<?php endif; ?>

        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
    <div class="col-lg-12">
        <div class="ibox float-e-margins">

            <div class="ibox-content">


                <button class="btn btn-primary " data-toggle="modal" data-target="#myModal">
                    新增品牌
                </button>
                <!-- Modal -->
                <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                     aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;
                                </button>
                                <h4 class="modal-title" id="myModalLabel">增加新品牌</h4>
                            </div>
                            <div class="modal-body">
                                <form method="post" class="form-horizontal">
                                    <div class="form-group"><label class="col-sm-2 control-label">名称：</label>
                                        <div class="col-sm-9"><input type="text" name="title"
                                                                     class="form-control ">
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                <button type="button" id="insert_info" class="btn btn-primary">保存</button>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="bs-example">
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>选择</th>
                            <th>序号</th>
                            <th>品牌名称</th>
                            <th>修改</th>
                            <th>删除</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if(is_array($DATA) || $DATA instanceof \think\Collection || $DATA instanceof \think\Paginator): if( count($DATA)==0 ) : echo "" ;else: foreach($DATA as $k=>$value): ?>
                        <tr>
                            <td><input type="checkbox" name="check" value=""></td>
                            <td value="<?php echo $value['id']; ?>"><?php echo $k+1; ?></td>
                            <td id="td<?php echo $value['id']; ?>"><?php echo $value['title']; ?></td>
                            <td>
                                <a data-toggle="modal"  name ="change" data-target="#myModal2<?php echo $k; ?>">
                                    修改
                                </a>
                                <!-- Modal -->
                                <div class="modal fade" id="myModal2<?php echo $k; ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2"
                                     aria-hidden="true">
                                    <div class="modal-dialog">
                                        <div class="modal-content">
                                            <div class="modal-header">
                                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;
                                                </button>
                                                <h4 class="modal-title" id="myModalLabel2">修改功能</h4>
                                            </div>
                                            <div class="modal-body">
                                                <form method="post" class="form-horizontal form2">
                                                    <div class="form-group"><label class="col-sm-2 control-label">名称：</label>
                                                        <div class="col-sm-9">
                                                            <input type="text" class="form-control" value="<?php echo $value['title']; ?>" name='name' id="ceshi<?php echo $value['id']; ?>">
                                                        </div>
                                                    </div>

                                                </form>
                                            </div>
                                            <div class="modal-footer">
                                                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                                <button type="button" name="save" id="<?php echo $value['id']; ?>" class="btn btn-primary">保存</button>
                                            </div>

                                        </div>
                                    </div>
                                </div>
                            </td>

                            <!--<td><button onclick="aadel(<?php echo $value['id']; ?>,this)">shanchu</button></td>-->
                            <td><a href="javascript:;" name = "del" value="<?php echo $value['id']; ?>">删除</a></td>
                        </tr>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                        </tbody>
                    </table>
                </div>

            </div>
        </div>
    </div>
</div>

        </div>

        <div class="footer">
    <div class="pull-right">
        Version: <strong>__VERSION__</strong> Green.
    </div>
    <div>
        <strong>Copyright</strong> __COPYRIGHT__ __COPYTIME__
    </div>
</div>


    </div>

</div>

</body>
<!--这里是引入的 js -->
<!-- Mainly scripts -->
<script src="__PUBLIC__/home/js/jquery-2.1.1.js"></script>
<script src="__PUBLIC__/home/js/jquery.cookie.js"></script>
<script src="__PUBLIC__/home/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/home/js/plugins/jquery-ui/jquery-ui.min.js"></script>
<script src="__PUBLIC__/home/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="__PUBLIC__/home/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__PUBLIC__/home/js/plugins/select2/select2.full.min.js"></script>
<script src="__PUBLIC__/home/js/plugins/dataTables/datatables.min.js"></script>
<script src="__PUBLIC__/home/js/plugins/bootstrap-switch/js/bootstrap-switch.js"></script>

<!-- Toastr -->
<script src="__PUBLIC__/home/js/plugins/toastr/toastr.min.js"></script>

<!-- Custom and plugin javascript -->
<script src="__PUBLIC__/home/js/inspinia.js"></script>
<script src="__PUBLIC__/home/js/plugins/pace/pace.min.js"></script>

<!-- Other Page Js Start -->
<?php if(isset($CONFIG['js'][0])): $__FOR_START_12625__=0;$__FOR_END_12625__=count($CONFIG['js']);for($i=$__FOR_START_12625__;$i < $__FOR_END_12625__;$i+=1){ ?>
<script src="__PUBLIC__/<?php echo $CONFIG['js'][$i]; ?>"></script>
<?php } endif; ?><!-- Other Page Js Start -->

<script type="text/javascript" src="__PUBLIC__/home/ajax/main.js"></script>
<script type="text/javascript" src="__PUBLIC__/home/js/plugin.js"></script>

<?php if(\think\Request::instance()->controller()=='Index' or \think\Request::instance()->controller()=='System'): ?>
<script src="__PUBLIC__/home/ajax/<?php echo \think\Request::instance()->controller(); ?>/<?php echo \think\Request::instance()->action(); ?>.js"></script>
<?php else: ?>
<script src="__PUBLIC__/<?php echo $TPL_NAME; ?>/ajax/<?php echo \think\Request::instance()->controller(); ?>/<?php echo \think\Request::instance()->action(); ?>.js"></script>
<?php endif; ?>
</html>